Move definition position for byte-compile warning
authorSyohei YOSHIDA <syohex@gmail.com>
Wed, 18 Nov 2015 03:54:31 +0000 (12:54 +0900)
committerSyohei YOSHIDA <syohex@gmail.com>
Wed, 18 Nov 2015 03:54:31 +0000 (12:54 +0900)
which-key.el

index 257d9511eb6bfa1b0c3d32ac7c2f2c5322e03dc2..919fe5478d8b50773785158d3f373ddda7b3da86 100644 (file)
@@ -1032,6 +1032,10 @@ special (SPC,TAB,...) < single char < mod (C-,M-,...) < other."
 Uses `string-lessp' after applying lowercase."
   (string-lessp (downcase (cdr acons)) (downcase (cdr bcons))))
 
+(defsubst which-key--group-p (description)
+  (or (string-match-p "^\\(group:\\|Prefix\\)" description)
+      (keymapp (intern description))))
+
 (defun which-key-prefix-then-key-order (acons bcons)
   "Order first by whether A and/or B is a prefix with no prefix
 coming before a prefix. Within these categories order using
@@ -1140,10 +1144,6 @@ If KEY contains any \"special keys\" defined in
       (concat (substring desc 0 which-key-max-description-length) "..")
     desc))
 
-(defsubst which-key--group-p (description)
-  (or (string-match-p "^\\(group:\\|Prefix\\)" description)
-      (keymapp (intern description))))
-
 (defun which-key--highlight-face (description)
   "Return the highlight face for DESCRIPTION if it has one."
   (let (face)